package com.todo.reward.infrastructure.mapper;

import com.todo.reward.infrastructure.entity.po.RewardGrowthTemplatePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:19
 * @description
 */
@Mapper
public interface RewardGrowthTemplateMapper {

    RewardGrowthTemplatePO queryRewardGrowthTemplateById(@Param("templateId") Long templateId);

    int insertRewardGrowthTemplate(RewardGrowthTemplatePO rewardGrowthTemplate);

    int updateRewardGrowthTemplate(RewardGrowthTemplatePO rewardGrowthTemplate);

    int removeRewardGrowthTemplateById(@Param("templateId") Long templateId);

    List<RewardGrowthTemplatePO> queryRewardGrowthTemplatesByDispatchType(@Param("growthDispatchType") Integer growthDispatchType);

    List<RewardGrowthTemplatePO> queryRewardGrowthTemplateByIdList(@Param("idList") List<Long> idList);
}
